﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;
using RemoteObject;

namespace RemoteClient.UI
{
    public partial class DownloadPanel : UserControl
    {
         
        public DownloadPanel()
        {
            InitializeComponent();
            dJobLis.SegmentList = segmentList;
        }

        public void AddJob(DownloadJob job)
        {
            dJobLis.AddJob(job);
        }

        public void RemoveJob(DownloadJob job)
        {
            dJobLis.RemoveJob(job);            
        }

        public void StartDownload()
        {
            dJobLis.StartDownload();
        }

        public void StopDownload()
        {
            dJobLis.StopDownload();
        }        
    }    
}
